/*
 * Copyright (c) 2008-2013 Haulmont. All rights reserved.
 * Use is subject to license terms, see http://www.cuba-platform.com/license for details.
 */

package com.haulmont.asu.entity;

import com.haulmont.chile.core.annotations.NamePattern;
import com.haulmont.cuba.core.entity.StandardEntity;

import javax.persistence.*;

/**
 * Author: Sergey42
 * Date: 14.10.13 12:15
 */
@Table(name = "EXT_PROJECT_THEME")
@Entity(name = "ext$ProjectTheme")
@NamePattern("%s|name")
public class ProjectTheme extends StandardEntity {

    private static final long serialVersionUID = -5356195758281409887L;

    @Column(name = "NAME")
    protected String name;

    @ManyToOne
    @JoinColumn(name = "ORDER_INFO_ID")
    protected OrderInfo orderInfo;

    @ManyToOne
    @JoinColumn(name = "DIPLOMA_TYPE_ID")
    protected DiplomaType diplomaType;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DiplomaType getDiplomaType() {
        return diplomaType;
    }

    public void setDiplomaType(DiplomaType diplomaType) {
        this.diplomaType = diplomaType;
    }

    public OrderInfo getOrderInfo() {
        return orderInfo;
    }

    public void setOrderInfo(OrderInfo orderInfo) {
        this.orderInfo = orderInfo;
    }
}
